<fieldset id="sf_fieldset_post" class="">
<div class="form-row">
<dl>

  <?php foreach ($languages as $language): ?>

  <?php $tag_i18n = TagI18nPeer::retrieveByPk($tag->getId(), $language->getCulture()); ?>
    
    <?php if(isset($tag_i18n) and $tag_i18n->getId()): ?> 
  <dt><?php echo $language->getName(); ?></dt>
  <dd> 
        <?php echo input_hidden_tag('tag[i18n]['.$tag_i18n->getCulture().'][id]', $tag_i18n->getId()); ?>
        <?php echo input_tag('tag[i18n]['.$tag_i18n->getCulture().'][name]', $tag_i18n->getName(), array ('size' => 80)); ?>
  </dd>
    <?php else: ?>
  <dt><?php echo $language->getName(); ?></dt>
  <dd>  
        <?php echo input_tag('tag[i18n]['.$language->getCulture().'][name]', '', array ('size' => 80)); ?>
  </dd>
    <?php endif; ?>
  <?php endforeach; ?>
  
</dl>
</div>
</fieldset>

